from simulators.SuperFlow import SuperFlow
from simulators.HashFlow import HashFlow
from simulators.HashPipe import HashPipe
from simulators.Elastic import Elastic
from simulators.PRECISION import PRECISION
from simulators.FlowRadar import FlowRadar
from simulators.FlowClassifier import FlowClassifier
from simulators.流量生成器 import 流量生成器
from 翻译包 import *
import my_constants as mc
from 文件工具箱 import *
import numpy as np
import matplotlib.pyplot as plt

def 画水平线():
	plt.figure()
	plt.xticks([2.0, 4.0, 6.0, 8.0, 10.0])
	横坐标 = np.arange(1.0, 10.1, 1.0)
	plt.axhline(5, color="r", linestyle="--", linewidth=3)
	plt.plot(横坐标, 范围(1, 11), label = "HF", marker = "o", color = 'green')
	plt.plot(横坐标, 范围(1, 20, 2), label = "HP", marker = "P", color = 'black')
	plt.legend(bbox_to_anchor=(0.0, 1.0, 1.0, 0.1), loc = 3, ncol = 2, mode = "expand", borderaxespad = 0.0)
#	plt.legend(ncol = 2)
	plt.xlabel(r"Memory Consumption/MB")
	plt.savefig("测试.pdf", bbox_inches = "tight")
	plt.close()
if "__main__" == __name__:
	画水平线()
